const KoaRouter = require('@koa/router')
const fileRouter = new KoaRouter({ prefix: '/file' })

const { verifyAuthorization } = require('../middleware/login.middleware')
const { handleAvatar } = require('../middleware/file.middleware')
const fileController = require('../controller/file.controller')

// 上传头像的接口
fileRouter.post('/avatar',verifyAuthorization, handleAvatar, fileController.create)




module.exports = fileRouter